package week11;

import java.util.Scanner;

public class NumSeeker{
    public static void main(String[] arge) {
        int[]  number = {1,10,31,37,48,60,70,80};
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入要寻找的指定数字：");
        int m = scanner.nextInt();
        for(int a = 0;a <= 8;a ++)
        {
            if(a ==8){
                System.out.println("该数字不存在！");
                break;
            }
            else if(number[a]==m)
            {
                System.out.printf("number[%d]",a);
                break;
            }
        }
    }
}